export default Behavior({
  properties: {
    label: {
      type: String,
      value: "我已同意该协议",
    },
  },
  data: {
    name: "Tom",
    obj: {
      name: "Tyke",
      sex: "男",
    },
  },
  methods: {
    updateName() {
      this.setData({
        name: "Jerry",
      });
      console.log("我是behavior中的方法");
    },
  },
  lifetimes: {
    attached() {
      console.log("我是behavior的生命周期函数 attached -------");
    },
  },
});
